package com.example.javaeekeshe.service;

import com.example.javaeekeshe.pojo.AdBean;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IAdService {

    /**
     * 查询所有
     * @return
     */
    public List<AdBean> selectAllAd();


    /**
     * 插入广告
     * @param adBean
     */
    public void addAd(AdBean adBean);

    /**
     * 删除
     * @param id
     */
    public void del(Integer id);

    /**
     * 更新
     * @param adBean
     */
    public void update(AdBean adBean);
}
